﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    enum hours
    {
        z6小时,
        z8小时,
    }
    class DeliveryRobot:Robot
    {
        public hours hours;
        public DeliveryRobot(string name,hours hours)
        {
            this.Name = name;
            this.hours = hours;
        }
        public override void work()
        {
            Console.WriteLine("我叫{0},我工作{1}",this.Name,this.hours);
        }
    }
}
